import {RouteRecordRaw} from "vue-router";
import Layout from "@/layouts/layout-index.vue";

// 首页模块路由配置
// 路由配置参考 vue-router 文档 https://router.vuejs.org/zh/guide/advanced/meta.html
export default {
    path: '/',
    name: 'Home',
    component: Layout,
    redirect: '/dashboard',
    meta: {
        order: 1,
        icon: 'HomeFilled',
        title: "首页",
    },
    children: [
        {
            path: '/dashboard',
            name: 'Dashboard',
            component: () => import('@/views/dashboard/index.vue'),
            meta: {
                transition: 'slide-left',
                requiresAuth: false,
            },
        },
    ],
} as RouteRecordRaw;